package com.mumu.studykotlin

import org.junit.Test
import kotlin.math.max

/**
 * edie create on 2019/7/26
 */
class VarDemoTest {
    @Test
    fun _Var() {
        VarDeo().name = """李四"""
        print(VarDeo().name)
    }

    class VarDeo {
        var name: String = "张三"

    }

    @Test
    fun _Var1() {
        val num5=Math.sqrt(5.0)-Math.sqrt(4.0)
        val num4=Math.sqrt(4.0)-Math.sqrt(3.0)
        val max = max(num4, num5)
        print("num5的值是 $num5,最大值是$max")
    }
}
